<template>
  <div class="login-container">
    <el-form :model="userForm"
             status-icon
             label-width="100px"
             class="demo-ruleForm"
             style="text-align:left;">
      <el-form-item label="账号">
        <el-input type="text"
                  v-model="userForm.mobile"></el-input>
      </el-form-item>
      <el-form-item label="密码">
        <el-input type="password"
                  v-model="userForm.password"
                  autocomplete="off"></el-input>
      </el-form-item>
      <el-form-item style="display: flex;justify-content: center;">
        <el-button type="primary"
                   @click="submitForm()">登录</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>


export default {
  data () {
    return {
      userForm: {}
    }
  },
  methods: {
    submitForm () {
      this.$router.push('/');
    }
  }
}
</script>
<style lang="less" scoped>
// .login-container {
//   display: flex;
//   align-items: center;
// }
.demo-ruleForm {
  width: 30%;
  margin-left: 33%;
  margin-top: 15%;
}
</style>
